/*
 * Log.h
 *
 *  Created on: Sep 1, 2008
 *      Author: V
 *
 * Version 1.1
 *
 * Version History:
 * 1.0	Last copy after completion of HW1 in the HW1 project.
 * 1.1  Updated to use new Object_method convention.
 */

#ifndef LOG_H_
#define LOG_H_


#include "../string/String.h"
#include "../file/File.h"

typedef struct LogTag {
	pString filename;
	pFile logFile;
}Log, *pLog, **LogList;

pLog Log_GetSingleton();

void Log_FunctionEnter(pLog, const char* function, const char* file, int line);

void Log_FunctionExit(pLog, const char* function, const char* file, int line);

void Log_Error(pLog, const char* description, int errorCode);

void Log_int(pLog, const char* name, int value, int line);

#endif /* LOG_H_ */
